import request from "@/utils/request.js";
const PREFIX = "/comment"
export default {
    getVideoComment(dto){
        return request({
            url:`${PREFIX}/page`,
            method:'post',
            data:dto
        })
    },
    getReplyComment(dto){
        return request({
            url:`${PREFIX}/reply`,
            method:'post',
            data:dto
        })
    },
    publishComment(dto){
        return request({
            url:`${PREFIX}/publish`,
            method:'post',
            data:dto
        })
    },
    getUserCommentList(dto){
        return request({
            url:`${PREFIX}/user`,
            method:'post',
            data:dto
        })
    },
    deleteComment(commentId){
        return request({
            url:`${PREFIX}/delete/${commentId}`,
            method:'delete'
        })
    }
}